package com.yungui.consul.consumer.controller;

import com.yungui.consul.consumer.service.RemoteService;
import com.yungui.response.BaseResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.net.URI;

@RestController
@RequestMapping("/demo")
public class DemoController {
    @Autowired
    private RemoteService remoteService;

    @GetMapping("/hello")
    public BaseResponse hello() {
        BaseResponse response = remoteService.demo1("王云");
        return response;
    }

}
